layout: Update adjustment usage for sealing
authorBenjamin Otte <otte@redhat.com>
Wed, 5 Jan 2011 12:17:18 +0000 (13:17 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 5 Jan 2011 13:30:58 +0000 (14:30 +0100)
gtk/gtklayout.c

index bf43bd83e85f1f8496c93fbe9b038a41a0330f9d..f3dae47139b2a7cded5e55ae1b7e8443914d48d8 100644 (file)
@@ -878,8 +878,8 @@ gtk_layout_realize (GtkWidget *widget)
 
   gtk_widget_get_allocation (widget, &allocation);
 
-  attributes.x = - priv->hadjustment->value,
-  attributes.y = - priv->vadjustment->value;
+  attributes.x = - gtk_adjustment_get_value (priv->hadjustment),
+  attributes.y = - gtk_adjustment_get_value (priv->vadjustment);
   attributes.width = MAX (priv->width, allocation.width);
   attributes.height = MAX (priv->height, allocation.height);
   attributes.event_mask = GDK_EXPOSURE_MASK | GDK_SCROLL_MASK | 
@@ -1112,8 +1112,8 @@ gtk_layout_adjustment_changed (GtkAdjustment *adjustment,
   if (gtk_widget_get_realized (GTK_WIDGET (layout)))
     {
       gdk_window_move (priv->bin_window,
-                      - priv->hadjustment->value,
-                      - priv->vadjustment->value);
+                      - gtk_adjustment_get_value (priv->hadjustment),
+                      - gtk_adjustment_get_value (priv->vadjustment));
 
       gdk_window_process_updates (priv->bin_window, TRUE);
     }